package security.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 登录信息表
 * </p>
 *
 * @author liyp
 * @since 2020-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="YxLogin对象", description="登录信息表")
public class YxLogin implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id",type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "用户ID")
    private String saId;

    @ApiModelProperty(value = "帐号")
    private String name;

    @ApiModelProperty(value = "帐号类型")
    private String accountType;

    @ApiModelProperty(value = "最后登录时间")
    private LocalDateTime lastLoginTime;

    @ApiModelProperty(value = "最后登录的ip")
    private String lastLoginIp;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "删除标志")
    private Boolean deleted;

    @ApiModelProperty(value = "插入记录者")
    private String insertSaId;

    @ApiModelProperty(value = "插入记录时间")
    private LocalDateTime insertTime;

    @ApiModelProperty(value = "最后更新记录者")
    private String updateSaId;

    @ApiModelProperty(value = "最后更新记录时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除时间")
    private LocalDateTime deleteTime;

    @ApiModelProperty(value = "删除记录着")
    private String deleteSaId;

    @ApiModelProperty(value = "插入或更新记录的ip地址")
    private String ip;


}
